#pragma once

#include "../util.hpp"
#include "../result.hpp"

namespace pharmacy_server
{
    class AlertView
    {
    public:
        Result check_stock_alerts(bool succ, const std::string& desc, const std::string& data = "")
        {
            if (succ)
                return Result(Result::SUCCESS, desc, data);
            else
                return Result(Result::FAILED, desc);
        }

        Result check_expiry(bool succ, const std::string& desc, const std::string& data = "")
        {
            if (succ)
                return Result(Result::SUCCESS, desc, data);
            else
                return Result(Result::FAILED, desc);
        }

    };
}